package com.luyu.service.impl;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * @author luYu
 */
@Service
@Validated(value = {Default.class})
@Slf4j
public class Method2ValidServiceImpl  {

    public Object hello(@NotNull(message = "id") Integer id, @NotEmpty(message = "名称") String name) {
        return null;
    }
}
